//
//  User+State.swift
//  SwiftuiUno
//
//  Created by hccc on 2023/11/22.
//

import Foundation
import HandyJSON

enum UserOnLineStatus: Int, HandyJSONEnum {
    case live = 1 //接单心动状态 live
    case active = 2 //活跃
    case online = 3//在线
    case calling = 4 //通话中 busy
    case offline = 5 //离线
    case party = 6 //派对(现在没有)
}

enum UserSex: Int, HandyJSONEnum {
    case unknown = 0
    case female = 1
    case male = 2
    case all = 3
    
    var isFemale: Bool {
        self == .female
    }
    
    var isMale: Bool {
        self == .male
    }
}

enum UserReleationType: Int, HandyJSONEnum {
//    0,"无关"，1,"关注"，2,"粉丝，3,"好友",4 .黑名单,5.拉黑, 6.拉黑别人
    /// 没有关系
    case type_none_0 = 0
    /// 关注
    case type_follow_1 = 1
    /// 粉丝
    case type_fans_2 = 2
    /// 好友
    case type_friend_3 = 3
    /// 从来没用过
    case type_blackList_4 = 4
    /// 我拉黑别人
    case type_iBlackOther_5 = 5
    /// 别人拉黑我
    case type_otherBlackMe_6 = 6
}
